package stripsPlanner;

import stripsLanguage.Predicate;
import stripsLanguage.Step;

/**
 * Zawiera wyniki ustalania celu iteracji STRIPS: krok, ktorego warunek chcemy spelnic oraz
 * ten warunek
 * @author Lukasz
 *
 */

public class Subgoal {
	private Step StepOfSubgoal = null;
	private Predicate PredicateOfSubgoal = null;
	
	public Subgoal(Step step, Predicate subgoalPredicate)
	{
		StepOfSubgoal = step;
		PredicateOfSubgoal = subgoalPredicate;
	}
	
	public Step getStepOfSubgoal()
	{
		return StepOfSubgoal;
	}
	
	public Predicate getPredicateOfSubgoal()
	{
		return PredicateOfSubgoal;
	}
	
	public String toString()
	{
		return "Step: (" + StepOfSubgoal.getId() + ", " + StepOfSubgoal.getName()
			+ "), Predicate: (" + PredicateOfSubgoal.getIdOfPredicate() + ", " + PredicateOfSubgoal.getName() + ")"; 
	}
}
